/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sudoku.Vista;

import javax.swing.JDialog;
import sudoku.Controlador.ControladorSeleccionarVista;

/**
 *
 * @author User
 */
public class SeleccionVista extends JDialog {

    /**
     * Creates new form SeleccionVista
     */
    public SeleccionVista() {
        initComponents();
    }
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jbVista1 = new javax.swing.JButton();
        jbVista2 = new javax.swing.JButton();
        jlTitulo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jbVista1.setText("Vista 1");

        jbVista2.setText("Vista 2");

        jlTitulo.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        jlTitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jlTitulo.setText("Seleccione Vista");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jbVista1)
                .addGap(86, 86, 86)
                .addComponent(jbVista2)
                .addContainerGap())
            .addComponent(jlTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(jlTitulo)
                .addGap(38, 38, 38)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbVista1)
                    .addComponent(jbVista2))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jbVista1;
    private javax.swing.JButton jbVista2;
    private javax.swing.JLabel jlTitulo;
    // End of variables declaration//GEN-END:variables
    
    public void setController(ControladorSeleccionarVista cSV){
        jbVista1.addActionListener(cSV);
        jbVista2.addActionListener(cSV);
    }
}
